dnd: Remove an unused struct field
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Dec 2015 23:32:57 +0000 (18:32 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 8 Dec 2015 02:15:23 +0000 (21:15 -0500)
We only have one screen nowadays, so the fallback_icon is
never used.

gtk/gtkdnd.c

index f0c8c0b6345b36c98495232777c072c9d75679e9..20ec74e04feb42f3346aad88414d12de968b3d40 100644 (file)
@@ -98,7 +98,6 @@ struct _GtkDragSourceInfo
   GdkDragContext    *context;     /* drag context */
   GtkWidget         *icon_window; /* Window for drag */
   GtkWidget         *icon_widget; /* Widget for drag */
-  GtkWidget         *fallback_icon; /* Window for drag used on other screens */
   GtkWidget         *ipc_widget;  /* GtkInvisible for grab, message passing */
   GdkCursor         *cursor;      /* Cursor for drag */
   gint hot_x, hot_y;              /* Hot spot for drag */
@@ -3213,13 +3212,6 @@ gtk_drag_remove_icon (GtkDragSourceInfo *info)
       gtk_widget_set_opacity (info->icon_widget, 1.0);
       if (info->destroy_icon)
         gtk_widget_destroy (info->icon_widget);
-
-      if (info->fallback_icon)
-        {
-          gtk_widget_destroy (info->fallback_icon);
-          info->fallback_icon = NULL;
-        }
-
       g_object_unref (info->icon_widget);
       info->icon_widget = NULL;
     }